package chixing.day05;

/**
 * Book（图书类）有属性:bookIsbn（书号）、bookTitle（书名）、bookAuthor（作者）available（是否可借）
 */
public class Book {
    private String bookIsbn;
    private String bookTitle;
    private String bookAuthor;
    private boolean available;

    public Book(){}
    public Book(String bookIsbn, String bookTitle, String bookAuthor, boolean available) {
        this.bookIsbn = bookIsbn;
        this.bookTitle = bookTitle;
        this.bookAuthor = bookAuthor;
        this.available = available;
    }

    public String getBookIsbn() {
        return bookIsbn;
    }

    public void setBookIsbn(String bookIsbn) {
        this.bookIsbn = bookIsbn;
    }

    public String getBookTitle() {
        return bookTitle;
    }

    public void setBookTitle(String bookTitle) {
        this.bookTitle = bookTitle;
    }

    public String getBookAuthor() {
        return bookAuthor;
    }

    public void setBookAuthor(String bookAuthor) {
        this.bookAuthor = bookAuthor;
    }

    public boolean isAvailable() {
        return available;
    }

    public void setAvailable(boolean available) {
        this.available = available;
    }

    @Override
    public String toString() {
        return "Book{" +
                "bookIsbn=" + bookIsbn +
                ", bookTitle='" + bookTitle + '\'' +
                ", bookAuthor='" + bookAuthor + '\'' +
                ", available=" + available +
                '}';
    }
}
